﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using MICZ.CodeBuilder.Repository.SqlSugar;
using Microsoft.AspNetCore.Mvc;
using MICZ.CodeBuilder.IRepository.SqlSugar;
using Microsoft.AspNetCore.Cors;

namespace MICZ.CodeBuilder.WebApi.Controllers
{
    
    public class HomeController : BaseController
    {
        //IUserinfoService userinfoService;
        //ISqlSugarRepository SqlSugarRepository;
        //HomeController(IUserinfoService _userinfoService, ISqlSugarRepository _SqlSugarRepository)
        //{
        //    userinfoService = _userinfoService;
        //    SqlSugarRepository = _SqlSugarRepository;
        //}

        [EnableCors]
        //[ServiceFilter(typeof(LoginFilterAttribute))]
        public IActionResult Index()
        {
            //DbContextRepository.GetByIds(1);
            //userinfoService.GetList(0,0,"",a=>true);
            return Content("WebApi123");
        }
    }
}
